#define _CRT_SECURE_NO_WARNINGS 1
#include"Dlist.h"

void DListTest()
{
	DLN* Plist = NULL;
	Plist = DLSTInit();
	DLSTPushBack(Plist, 1);
	DLSTPushBack(Plist, 2);
	DLSTPushBack(Plist, 3);
	DLSTPushBack(Plist, 4);
	DLSTPushFront(Plist, 6);
	DLSTPushFront(Plist, 5);
	DLSTPushFront(Plist, 7);
	DLSTPopFront(Plist);
	DLSTPopBack(Plist);
	DLN* pos = DLSTDataFind(Plist, 2);
	if (pos != NULL)
	{
		DLSTInsert(Plist, pos, 20);
		/*DLSTErase(Plist, pos);*/
	}
	DLSTPrint(Plist);
}

int main()
{
	DListTest();
	return 0;
}